<?php

namespace app\admin\Model;

use think\Model;

class TeachModel extends Model
{
    protected $name = 'teach';
    public function teach(){
        return $this->hasOne('TeacherModel','id','tid');
    }
    public function course(){
        return $this->hasOne('CourseModel','id','cid');
    }
}